package com.zoweunion.mechanic.util.task;

import com.zoweunion.mechanic.controller.MyGaussianFilter;
import com.zoweunion.mechanic.service.app.AppService;
import com.zoweunion.mechanic.service.shangji.ShangJiService;
import com.zoweunion.mechanic.util.MyException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhangjun
 * @description
 */
@Component
public class SetLatitudeAndLongitudeTask {
    protected Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    ShangJiService shangJiService;
    @Autowired
    AppService appService;

    // 该定时已被注，未改，方法或不可用
    // @Scheduled(cron = "0 23 11 * * ? ")
    private void updateBrowse() throws MyException {
        // logger.info("定时任务：补全数据库数据操作");
        // shangJiService.setLatitudeAndLongitudeForBuyInfo();
        // shangJiService.setLatitudeAndLongitudeForShopInfo();
        // 设置维修店铺评价
        // shangJiService.setEvaluationsForShopInfo();
        // 职位类型随机处理
        // shangJiService.setWorkTypeRandom();
        // shangJiService.setRentalMethodForBuyInfoRandom();
        // 工单逆地址坐标解析，通过坐标获取位置信息
        // appService.regeo();
        // 新闻加水印
        // MyGaussianFilter.addHotNewsWatrmark();
        //chushou加水印
        // MyGaussianFilter.addChushouWatermark();
        // others加水印
        // MyGaussianFilter.addOtherWatermark();
    }
}
